﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace W1
{
    class DeliveryRobot : Robot
    {
        private int hours;

        public int Hours
        {
            get { return this.hours; }
            set { this.hours = value; }
        }


        public DeliveryRobot(string name, int hours) : base(name)
        {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("{0}连续工作时长为{1}分钟", this.name, this.hours);
        }
    }
}
